﻿package mortal.game.view.copy.wine
{
    import Message.BroadCast.*;
    import Message.DB.Tables.*;
    import Message.Public.*;
    import flash.utils.*;
    import mortal.game.scene3D.player.entity.*;

    public class WinePartyCopyCache extends Object
    {
        private var _winePartyDetailInfo:SGuildWinePartyRankInfo;
        private var _wineCollectStateDic:Dictionary;
        private var _currSelToastPerson:SEntityInfo;
        private var _currToastingPlayer:UserPlayer;
        private var _winePartyDonateArr:Array;
        public var currWinePartyLevel:int;
        public var currCollectWineBoss:TBoss;

        public function WinePartyCopyCache()
        {
            this._wineCollectStateDic = new Dictionary();
            return;
        }// end function

        public function set winePartyDetailInfo(param1:SGuildWinePartyRankInfo) : void
        {
            this._winePartyDetailInfo = param1;
            return;
        }// end function

        public function get winePartyDetailInfo() : SGuildWinePartyRankInfo
        {
            return this._winePartyDetailInfo;
        }// end function

        public function updateWineCollectState(param1:int, param2:Boolean) : void
        {
            this._wineCollectStateDic[param1] = param2;
            return;
        }// end function

        public function getWineCollectState(param1:int) : Boolean
        {
            return this._wineCollectStateDic[param1] as Boolean;
        }// end function

        public function clearWineCollectState() : void
        {
            var _loc_1:* = undefined;
            for (_loc_1 in this._wineCollectStateDic)
            {
                
                this._wineCollectStateDic[_loc_1] = false;
            }
            return;
        }// end function

        public function updateCurrSelToaster(param1:SEntityInfo) : void
        {
            if (this._currSelToastPerson == null)
            {
                this._currSelToastPerson = param1;
            }
            else if (this._currSelToastPerson.entityId.id == param1.entityId.id || param1.entityId.id == 0)
            {
                this._currSelToastPerson = null;
            }
            return;
        }// end function

        public function get currSelToastPerson() : SEntityInfo
        {
            return this._currSelToastPerson;
        }// end function

        public function get winePartyDonateArr() : Array
        {
            return this._winePartyDonateArr;
        }// end function

        public function set winePartyDonateArr(param1:Array) : void
        {
            this._winePartyDonateArr = param1;
            return;
        }// end function

        public function set currToastingPlayer(param1:UserPlayer) : void
        {
            this._currToastingPlayer = param1;
            return;
        }// end function

        public function get currToastingPlayer() : UserPlayer
        {
            return this._currToastingPlayer;
        }// end function

    }
}
